<template>
  <div>
    <el-dialog
      title="合作商详情"
      :visible="viewVisible"
      width="60%"
      style="border-radius: 20px;"
      @close="close"
    >
      <el-row :gutter="20">
        <el-col :span="2"><div class="grid-content bg-purple" /> </el-col>
        <el-col :span="10"><div class="grid-content bg-purple" />合作商名称：{{ row.name }}</el-col>
        <el-col :span="10"><div class="grid-content bg-purple" />联系人：{{ row.contact }}</el-col>
        <el-col :span="2"><div class="grid-content bg-purple" /></el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="2"><div class="grid-content bg-purple" /> </el-col>
        <el-col :span="10"><div class="grid-content bg-purple" />联系电话：{{ row.mobile }}</el-col>
        <el-col :span="10"><div class="grid-content bg-purple" />分成比例：{{ row.ratio }}%</el-col>
        <el-col :span="2"><div class="grid-content bg-purple" /></el-col>
      </el-row>

    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    viewVisible: {
      type: Boolean,
      required: true,
      default: false
    }, row: {
      type: Object,
      required: true
    }
  },
  data() {
    return {

    }
  },

  created() {

  },
  methods: {
    close() {
      this.$parent.viewVisible = false
    }

  }
}

</script>

<style lang='scss'>

.el-table__header{
.is-leaf{
 background-color: #f3f6fb;

}
}
</style>
